package vinnichenko.lab3.database;

/**DepartmentInfo contains the data for one department.
 * @author Igor Vinnichenko
 * @version 1.0
 */
public class DepartmentInfo{
    /**Department number*/
    private Integer deptno;
    /**Department name*/
    private String dname;
    /**Location*/
    private String loc;

    /**Constructor*/
    public DepartmentInfo(){
        deptno = 0;
        dname = "";
        loc = "";
    }

    /**Set department number.
     * @param deptno new department number.
     */
    public void setDeptNo(Integer deptno){
        this.deptno = deptno;
    }

    /**Get department number.
     * @return department number.
     */
    public Integer getDeptNo(){
        return deptno;
    }

    /**Set department name.
     * @param dname new department name.
     */
    public void setDeptName(String dname){
        this.dname = dname;
    }

    /**Get department name.
     * @return department name.
     */
    public String getDeptName(){
        return dname;
    }

    /**Set department location.
     * @param loc new department location.
     */
    public void setLocation(String loc){
        this.loc = loc;
    }

    /**Get department location.
     * @return department location.
     */
    public String getLocation(){
        return loc;
    }
}